package com.health.dao;

import com.github.pagehelper.Page;
import com.health.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.Map;

public interface OrderMapper {
    int findCountByOrder(Order order);

    void add(Order order);

    int updateReservations(Date orderDate);

    Map<String, Object> findOrderReport();

    Page<Order> findByQuery(@Param("query") String query);

    Order findById(Integer id);

    int findReservationByDate(Date orderDate);

    void minusReservations(Date orderDate);

    int deleteById(Integer id);

    int update(Order order);


}
